home *** CD-ROM | disk | FTP | other *** search
- Path: news.iadfw.net!usenet
- From: Larry Weiss <lfw@iadfw.net>
- Newsgroups: comp.lang.c
- Subject: Re: [Q] Does free() work?
- Date: Sat, 24 Feb 1996 14:22:10 -0600
- Organization: ---
- Message-ID: <312F7372.2257@iadfw.net>
- References: <4gm3ss$qfa@news.infoserve.net> <Pine.A32.3.91.960223233526.113482D-100000@black.weeg.uiowa.edu>
- NNTP-Posting-Host: dal09-01.ppp.iadfw.net
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (Win16; I)
-
- The Amorphous Mass wrote:
- >
- > ... memory allocation is one of the slowest things a C
- > program can do and if the malloc() package doesn't have to actually
- > request memory from and release it to the OS then it can run faster,
- > cause less fragmentation, allow GC, etc. Of course none of these
- > benefits are guaranteed. :)
- >
-
- I disagree. I used to believe this also, and would avoid sophisticated
- methods involving linked lists and such, but now have come to realize that
- these allocations are "cheap" with modern implementations and should be used
- whenever they apply.
-